<?php

namespace App\Enums;


use App\Enums\Check\CheckErrorTrait;
use App\Enums\Common\ConfigErrorTrait;
use App\Enums\Contract\ContractErrCode;
use App\Enums\Kms\UserErrorEnum;
use App\Enums\OpenShop\Feishu\AuthTrait;
use App\Enums\OpenShop\InvestmentPromotion\BaseInfoErrorTrait;
use App\Enums\OpenShop\InvestmentPromotion\ShopLocationErrorTrait;
use App\Enums\OpenShop\InvestmentPromotion\SignOrderErrorTrait as FeishuSignOrderErrorTrait;
use App\Enums\OpenShop\InvestmentPromotion\SpaceDesignErrorTrait;
use App\Enums\OpenShop\InvestmentPromotion\UploadFileResourceErrorTrait;
use App\Enums\OpenShop\InvestmentPromotion\UserContractErrorTrait;
use App\Enums\OpenShop\Merchant\SignOrderErrorTrait;
use App\Enums\OpenShop\Merchant\SiteMissionErrorTrait;
use App\Enums\Recognize\RecognizeErrCode;

/**
 * @author Green Leaf <786407418@qq.com>
 * @description 错误码基类
 */
class BaseErrorCode extends ErrorCode
{
    /**
     * @var int
     * @message 内部异常
     */
    public static int $ERROR_OCCURRED = 100000;

    /**
     * @var int
     * @message 添加失败
     */
    public static int $BASE_CODE_INSERT_FAIL = 100001;
    /**
     * @var int
     * @message 更新失败
     */
    public static int $BASE_CODE_UPDATE_FAIL = 100002;
    /**
     * @var int
     * @message 查看详情失败
     */
    public static int $BASE_CODE_DETAIL_FAIL = 100003;
    /**
     * @var int
     * @message 查看列表失败
     */
    public static int $BASE_CODE_LIST_FAIL = 100004;

    /**
     * @var int
     * @message 暂不支持此操作
     */
    public static int $UN_SUPPORT_OPERATION = 100005;

    /**
     * @var int
     * @message 错误的私有文件地址
     */
    public static int $ERROR_PRIVATE_FILE_PATH = 100006;

    /**
     * @var int
     * @message 远程调用出错
     */
    public static int $ERROR_REMOTE_RESPONSE = 110000;

    /**
     * @var int
     * @message rms 远程调用出错
     */
    public static int $ERROR_REMOTE_RMS_RESPONSE = 110001;

    use SignOrderErrorTrait;

    //开店订单错误信息

    use ConfigErrorTrait;

    //配置错误信息

    use SiteMissionErrorTrait;

    //任务错误信息汇总

    use BaseInfoErrorTrait;

    //开店基础信息错误码汇总

    use FeishuSignOrderErrorTrait;

    //开店订单后台管理错误信息汇总

    use ShopLocationErrorTrait;

    //开店选址运营端错误信息汇总

    use UserContractErrorTrait;

    //合同异常错误码

    use SpaceDesignErrorTrait;

    //空间设计异常错误码

    use UploadFileResourceErrorTrait;

    //附件异常错误码

    use CheckErrorTrait;

    // 对账异常错误码

    use AuthTrait;

    //鉴权

    //阿里云图片识别
    use RecognizeErrCode;

    //合同错误码
    use ContractErrCode;

    //kms用户异常
    use UserErrorEnum;
}
